import React from 'react'

import { Pagination } from 'antd';
function My_pagination({data,set_page}) {

    return (
        <div>
             <Pagination pageSize={5} defaultCurrent={1} total={data.length}  onChange={(page, pageSize)=> set_page(page, pageSize)}/>
        </div>
    )
}

export default My_pagination
